package com.zl.enums
{
	import mx.collections.ArrayCollection;
	
	public class FactorType
	{
		
		public function FactorType(n:String="", i:String="", c:String="")
		{	
			this._name = n;
			this._attr = i;
			this._column = c;
		}
		
		public var _name:String;
		
		public var _attr:String;
		
		public var _column:String;
		
		public function get name():String
		{
			return _name;
		}
		
		public function get attr():String
		{
			return _attr;
		}
		
		public function get column():String
		{
			return _column;
		}
		
		public function getByAttr(attr:String):FactorType{
			for each(var factor:FactorType in getFactorList()){
				if(factor.attr == attr){
					return factor;
				}
			}
			return null;
		}
		
		public function getFactorList():ArrayCollection{
			return null;
		}
		
	}
}